﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<QLPKWeb.Models.FormBean.NhanVienModel.NhanVienForm>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
 <script type="text/javascript" language="javascript" src="<%= ResolveUrl("~/Content/Scripts/tabchocay.js") %>"></script>
    <script type="text/javascript" language="javascript" src="<%= ResolveUrl("~/Content/Scripts/tabber.js") %>"></script>
    

    <script type="text/javascript" language="javascript" src="<%= ResolveUrl("~/Content/Scripts/NghiepVu/TheoDoiHopDong.js") %>"></script>
    <script type="text/javascript" language="javascript" src="<%= ResolveUrl("~/Content/Scripts/NhanVien/ThemThongTinLienQuan.js") %>"></script>
     <script type="text/javascript" language="javascript">
           $(document).ready(function() {
               $("#NgayNhanViecTheoHopDong").datepicker({ dateFormat: 'dd/mm/yy' });
               $("#NgayThuViec").datepicker({ dateFormat: 'dd/mm/yy' });
               $("#HopDong6Thang").datepicker({ dateFormat: 'dd/mm/yy' });
           });
       </script>
           <script language="javascript" type="text/javascript">
               $(document).ready(function () {
                   selectMenu("NhanVien-DanhSachNhanVien");
                   $("#NhanVien-DanhSachNhanVien").parent().attr("class", "active");

               });
        </script>
    <div class="box">
          <ul class="breadcrumb">
                        <li><a href="#"><i class="icon-home"></i></a><span class="divider">&nbsp;</span></li>
                        <li><a href="#">Thông tin nhân viên</a><span class="divider">&nbsp;</span></li>
                        <li><a href="#">Page</a><span class="divider-last">&nbsp;</span></li>
                    </ul>
      <input type="hidden" id="Id" name="Id" value="<%= Model.Id %>" />
      <input type="hidden" id="IdKeyHSLienQuan" name="IdKeyHSLienQuan" value="<%= Model.ModelThongTinLienQuan.IdKeyHSLienQuan %>" />
      <table class="table_input" style="margin: 5px 5px 5px 5px; width: 80%" >
           <tr>
                <td>
                    <div id="Message" style="font-size: 12px; color: Blue; font-weight: bold">
                        <%=Model.Message%>
                    </div>
                    <div id="MessageError" style="font-size: 12px; color: Red; font-weight: bold">
                        <%=Model.MessageError%>
                    </div>
                </td>
            </tr>
           <tr>
                <td nowrap="nowrap">
                    Họ tên
                </td>
                <td >
                    <input type="text" id="HoTen" name="HoTen" readonly="readonly" value="<%=Model.Ho+Model.Ten %>" style="width: 90%" />
                </td>
                 <td nowrap="nowrap" style="width: 70px;">
                    Năm sinh
                </td>
                <td >
                    <input type="text" id="NamSinh" name="NamSinh" readonly="readonly" value="<%=string.Format("{0:dd/MM/yyyy}",Model.NamSinh) %>" style="width: 90%" />
                </td>
            </tr>
            <tr>
               
            </tr>
            <tr>
                <td nowrap="nowrap" style="width: 110px;">
                    CMND
                </td>
                <td >
                    <input type="text" id="SoCMND" name="SoCMND" readonly="readonly" value="<%=Model.SoCMND %>" 
                        style="width: 90%" />
                   
                </td>
                <td nowrap="nowrap" style="width: 70px">
                   Số thẻ
                </td>
                <td>
                    <input type="text" id="SoThe" name="SoThe" readonly="readonly" value="<%=Model.SoThe %>" style="width: 90%" />
                </td>
            </tr>
            </table>
        <form id="ThongTinLienQuanForm" action="#" class="formBox">
      <table class="table_input" style="margin: 5px 5px 5px 5px;width: 80%">
                <tr>
                <td nowrap="nowrap">
                    Ngày nhận việc theo hợp đồng
                </td>
                <td >
                    <input type="text" id="NgayNhanViecTheoHopDong" name="NgayNhanViecTheoHopDong"  value="<%=string.Format("{0:dd/MM/yyyy}",Model.ModelThongTinLienQuan.NgayNhanViecTheoHopDong) %>" style="width: 40%" />
                      <div class="red" id="NgayNhanViecTheoHopDongMessage"></div>
                </td>
                 <td nowrap="nowrap" style="width: 70px;">
                    Ngày thử việc
                    </td>
                <td >
                    <input type="text" id="NgayThuViec" name="NgayThuViec"  value="<%=string.Format("{0:dd/MM/yyyy}",Model.ModelThongTinLienQuan.NgayThuViec) %>" style="width: 40%" />
                       <div class="red" id="NgayThuViecMessage"></div>
                </td>
            </tr>
            <tr>
            </tr>
            <tr>
                <td nowrap="nowrap" style="width: 110px;">
                    Ngày Hợp đồng 6 tháng
                </td>
                <td >
                    <input type="text" id="HopDong6Thang" name="HopDong6Thang" value="<%=string.Format("{0:dd/MM/yyyy}",Model.ModelThongTinLienQuan.HopDong6Thang) %>"style="width: 40%" />
                      <div class="red" id="HopDong6ThangMessage"></div>
                </td>
                <td nowrap="nowrap" style="width: 130px">
                   Hợp đồng 12 tháng
                </td>
                <td>
                    <input type="text" id="HopDong12Thang" name="HopDong12Thang"  value="<%=Model.ModelThongTinLienQuan.HopDong12Thang %>" style="width: 90%" />
                        <div class="red" id="HopDong12ThangMessage"></div>
                </td>
            </tr>
              <tr>
                <td nowrap="nowrap"  colspan="4" class="btn-submit">
                    <input type="button" id="LuuThongTinLienQuan"name="LuuThongTinLienQuan" value="Cập nhật thông tin liên quan" onclick="javascript:ThemThongTinLienquan();"/>
                    <input type="button" id="btnThoiViec" value="Thôi Việc" onclick="DoOpenThoiViecDialog(<%= Model.Id %>);"/>
                </td>
               
            </tr>
            </table>
            </form>
   <div id="tabbac" class="tabber" style="margin-left: 5px; margin-right: 5px;">
            <div id="tabindex1" <%if(Model.HidLastTab == 1){%>class="tabbertab tabbertabdefault"
                <%} else{%>class="tabbertab" <%} %>>
                <h2>
                   Lương cơ bản</h2>
                    <div id="ControlTabLuongCoBan">
                    <% Html.RenderPartial("~/Views/QuanLyNhanVien/LươngCoBan.ascx", Model.ModelLuongCoBan); %>
                </div>
            </div>
            
                <div id="tabindex2" <%if(Model.HidLastTab == 2){%>class="tabbertab tabbertabdefault"
                <%} else{%>class="tabbertab" <%} %>>
                <h2>
                   Trách nhiệm</h2>
                    <div id="ControlTabTrachNhiem">
                    <% Html.RenderPartial("~/Views/QuanLyNhanVien/TrachNhiem.ascx", Model.ModelTrachNhiem); %>
                </div>
            </div>
            
              <div id="tabindex3" <%if(Model.HidLastTab == 3){%>class="tabbertab tabbertabdefault"
                <%} else{%>class="tabbertab" <%} %>>
                <h2>
                   Phụ cấp đi lại</h2>
                    <div id="ControlTabPCDiLai">
                    <% Html.RenderPartial("~/Views/QuanLyNhanVien/PCDiLai.ascx", Model.ModelPCDiLai); %>
                </div>
            </div>
            <div id="tabindex4" <%if(Model.HidLastTab == 4){%>class="tabbertab tabbertabdefault"
                <%} else{%>class="tabbertab" <%} %>>
                <h2>
                   Phụ cấp cơm</h2>
                    <div id="ControlTabPCCom">
                    <% Html.RenderPartial("~/Views/QuanLyNhanVien/PCCom.ascx", Model.ModelPCCom); %>
                </div>
            </div>
            
                 <div id="tabindex5" <%if(Model.HidLastTab == 5){%>class="tabbertab tabbertabdefault"
                <%} else{%>class="tabbertab" <%} %>>
                <h2>
                   Phụ cấp điện thoại</h2>
                    <div id="ControlTabPCDienThoai">
                    <% Html.RenderPartial("~/Views/QuanLyNhanVien/PCDienThoai.ascx", Model.ModelPCDienThoai); %>
                </div>
            </div>
                  <div id="tabindex6" <%if(Model.HidLastTab == 6){%>class="tabbertab tabbertabdefault"
                <%} else{%>class="tabbertab" <%} %>>
                <h2>
                   Phụ cấp chuyên cần</h2>
                    <div id="ControlTabPCChuyenCan">
                    <% Html.RenderPartial("~/Views/QuanLyNhanVien/PCChuyenCan.ascx", Model.ModelPCChuyenCan); %>
                </div>
            </div>
            
        </div>
              
  
    </div>
    
    <%-- Thôi Việc --%>
    <% Html.RenderPartial("~/Views/QuanLyNhanVien/ThoiViecUserControl.ascx"); %>
</asp:Content>


